package com.ds.seqlist;

public class LinkedListWithHeadTest {
    public static void main(String[] args) {
        LinkedListWithHead linkedListWithHead = new LinkedListWithHead();
        linkedListWithHead.addFirst(3);
        linkedListWithHead.addFirst(2);
        linkedListWithHead.addFirst(2);
        linkedListWithHead.addFirst(3);
        linkedListWithHead.addFirst(2);
        // 2->2->2->2->3
        System.out.println(linkedListWithHead);
        linkedListWithHead.removeAllValue(2);
        System.out.println(linkedListWithHead);
//        System.out.println("----------------");
//        System.out.println(linkedListWithHead.remove(0));
//        System.out.println(linkedListWithHead.remove(1));
//        System.out.println(linkedListWithHead);
    }

}
